<%@page import="com.bill.common.system.dto.RuleDTO"%>
<%@page import="com.bill.common.user.dto.RegisterUserQueryDTO"%>
<%@page import="com.bill.common.user.service.IRegisterUserService"%>
<%@page import="com.bill.common.user.dto.RegisterUserDTO"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.context.ApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="../language.jsp" %>
<%
if(session.getAttribute("password2")==null){
	response.sendRedirect( "login2.jsp?pageUrl=user/reTouZi.jsp");
	return;
}
ApplicationContext ac = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
IRegisterUserService registerUserService = (IRegisterUserService)ac.getBean("registerUserService");
RegisterUserQueryDTO qdto = new RegisterUserQueryDTO();
qdto.setLoginName((String)session.getAttribute("loginName"));
RegisterUserDTO registerUserDTO = registerUserService.findRegisterUserByIdOrLoginName(qdto);
request.setAttribute("registerUserDTO",registerUserDTO);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title><fmt:message key="i18n.title"/> </title>
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	
	<link rel="shortcut icon" href="../index/favicon.png" />
	
	<!-- bootstrap -->
    <link href="css/bootstrap/bootstrap.css" rel="stylesheet" />
    <link href="css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
    <link href="css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />
    
	<link rel="stylesheet" type="text/css" href="css/style1.css">
</head>
<body>

	<!-- main container -->
	<div class="content container-fluid">
		<!-- BreadcrumbNavigation -->
        <div class="row-fluid head">
            <div class="span12">
                <h4>会员管理  &gt;会员复投</h4>
            </div>
        </div>
        <br><br>
        <form action="registerUser!userOpt.action" id="reTouZi_form">
	  		<input type="hidden" value="reTouZi.jsp" name="pageUrl">
	  		<input type="hidden" value="ReTouZi" name="optType">
	  		<input type="hidden" value="${session.loginName }" name="loginName">
	  		
	  		<p class="tx_contBoxL"><fmt:message key="i18n.userlevel" />：</p>
		  	<select class="span9" id="registerLevel_reg1" name="upLevel">
				<c:choose>  
					<c:when test="${registerUserDTO.registerLevel=='L1'}">
						<option value="L1"><fmt:message key="L1" />(<%=RuleDTO.level.get("L1") %>)</option> 
	  					<option value="L2"><fmt:message key="L2" />(<%=RuleDTO.level.get("L2") %>)</option> 
	  					<option value="L3"><fmt:message key="L3" />(<%=RuleDTO.level.get("L3") %>)</option> 
	  					<option value="L4"><fmt:message key="L4" />(<%=RuleDTO.level.get("L4") %>)</option> 
					</c:when>  
					<c:when test="${registerUserDTO.registerLevel=='L2'}">
						<option value="L2"><fmt:message key="L2" />(<%=RuleDTO.level.get("L2") %>)</option> 
	 					<option value="L3"><fmt:message key="L3" />(<%=RuleDTO.level.get("L3") %>)</option> 
	 					<option value="L4"><fmt:message key="L4" />(<%=RuleDTO.level.get("L4") %>)</option> 
					</c:when>  
					<c:when test="${registerUserDTO.registerLevel=='L3'}">
						<option value="L3"><fmt:message key="L3" />(<%=RuleDTO.level.get("L3") %>)</option> 
	 					<option value="L4"><fmt:message key="L4" />(<%=RuleDTO.level.get("L4") %>)</option> 
					</c:when>  
					<c:when test="${registerUserDTO.registerLevel=='L4'}">
	 					<option value="L4"><fmt:message key="L4" />(<%=RuleDTO.level.get("L4") %>)</option> 
					</c:when>
				</c:choose>  
			</select>
			<br><br><br>
			<c:if test="${not empty session.activationTime}">
				<input class="ctrR1BoxAn" onclick="reTouZi()" type="button" value="&nbsp;&nbsp;&nbsp;&nbsp;复投提交&nbsp;&nbsp;&nbsp;&nbsp;">
			</c:if>
		</form>
	</div>


<script type="text/javascript" src="../scripts/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../scripts/user/reguser.js"></script>
</body>
</html>